@extends('admin.layout.index')
@section('content')
@if (count($errors) > 0)
    <div class="mws-form-message error">
        <ul>
            @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    </div>
@endif
<div class="mws-panel grid_8">
	<div class="mws-panel-header">
    	<span>品牌修改</span>
    </div>
    <div class="mws-panel-body no-padding">
    	<form action="/admin/brand/update?page={{$page}}" class="mws-form" method='post' enctype="multipart/form-data">
    		{{csrf_field()}}
            <input type="hidden" name="id" value="{{$data['id']}}">
    		<div class="mws-form-inline">
    			<div class="mws-form-row">
    				<label class="mws-form-label">品牌名称</label>
    				<div class="mws-form-item">
    					<input type="text" class="small" name="brandname" value="{{$data['brandname']}}">
    				</div>
    			</div>
                <div class="mws-form-row">
                    <label class="mws-form-label">品牌展示照片</label>
                    <div class="mws-form-item">
                        <input type="file" class="small" name="brandpic">
                        <img src="/uploads/images/brandpic/{{$data['brandpic']}}" alt="">
                    </div>
                </div>
    		</div>
            <div class="mws-form-inline">
                <div class="mws-form-row">
                    <label class="mws-form-label">是否在首页品牌区显示</label>
                    <div class="mws-form-item">
                        <select name="isDisplay" id="">
                            <option value="0" @if($data['isDisplay'] == 0) selected @endif>不显示</option>
                            <option value="1" @if($data['isDisplay'] == 1) selected @endif>显示</option>
                        </select>
                    </div>
                </div>
            </div>
    		<div class="mws-button-row">
    			<input type="submit" class="btn btn-danger" value="修改">
    			<input type="reset" class="btn " value="重置">
    		</div>
    	</form>
    </div>    	
</div>
@endsection
